Galaxies are classified by their shape. Scientists distinguish between spiral, elliptical and irregular galaxies.